<!DOCTYPE html>
<html>
<!--   v1.6.6.2 RDPROJECT-140 yl 2013-10-23 start-->
<#assign web_title='我的好友 - ${webname!}'>
<#assign web_description='我的好友，${webname!}p2p网贷平台'>
<!--   v1.6.6.2 RDPROJECT-140 yl 2013-10-23 end--> 
<#include "../../include/resource.html">
<body>
	<#assign nid="member"> 
	<#include "../../include/header.html">
	<!--header-end-->
	<!--用户中心的主栏目 开始-->
	<div id="main" class="clearfix" >
		<div class="wrap950 " style="margin-top:0">
			<!--左边的导航 开始-->
			<div class="user_left">
            <#assign mid="m_friend" >
            <#include "../user_menu.html"></div>
			<!--左边的导航 结束-->

			<!--右边的内容 开始-->
			<div class="user_right">
				<div class="user_right_menu">
					<#assign query_type="request">
					<#include "friend_menu.html" >
				</div>
                <div class="user_right_main">
				<!--好友请求 开始-->
                    <table  border="0"  cellspacing="1" class="table table-striped  table-condensed" style="width:100%">
                        <tr class="head" >
                            <td>对方名称</td>
                            <td>请求时间</td>
                            <td>请求说明</td>
                            <td>操作</td>
                        </tr>
                        <#if (list?exists)&&(list?size>0)>
                        <#list list as item>
                        <tr >
                            <td><a href="${request.getContextPath()}/user/show.html?user_id=${item.user_id?c}" target="_blank">${item.friends_username}</a></td>
                            <td>${dateformat(item.addtime)}</td>
                            <td>${item.content}</td>
                            <td>
                                <a href="javascript:void(0)" onclick='tipsWindown("加为好友","id:addfriendcontent_${item.id?c}",400,230,"true","","true","text");'>加为好友</a>  
                                <a href="${webroot}/member/friend/delfriend.html?username=${item.friends_username!}">删除好友</a> 
                                <div id="addfriendcontent_${item.id?c}" style="display:none">
                                    <form method='post' action='${request.getContextPath()}/member/friend/addfriend.html'>
                                        <div align='left'><br>&nbsp;&nbsp;&nbsp;好友：${item.friends_username?default("")}
                                        <input type='hidden' name='friends_userid' value='${item.user_id?c}'></div>
                                        <div align='left'>
                                            <br>&nbsp;&nbsp;&nbsp;类型：<@linkage name="friend" id="friend" nid="friends_type" />
                                        </div><div align='left'><br>&nbsp;&nbsp;&nbsp;内容：<textarea rows='1' cols='30' name='content'></textarea></div>
                                        <div align='left'><br>&nbsp;&nbsp;&nbsp;<input type='submit' value='确定添加'></div>
                                    </form>
                                </div>
                            </td>
                        </tr>
                        </#list>
                        </#if>
                        </table>
				</div>	
				<!--好友请求 结束-->
			</div>
			<!--右边的内容 结束-->
		</div>
	</div>
	<!--用户中心的主栏目 结束-->
<script type="text/javascript" src="${request.getContextPath()}${theme_dir}/media/js/tipswindown.js"></script>
<link href="${request.getContextPath()}${theme_dir}/media/css/tipswindown.css" rel="stylesheet" type="text/css" />
	<#include "../../include/footer.html">
</body>
</html>